package data.events
{
	import flash.events.Event;
	
	public class DataEvent extends Event
	{
		/**
		 * 数据工厂注册成功事件
		 */		
		public static const DATA_FACTORY_REGISTER_COMPLETE:String = "dataFactoryRegisterComplete";
		
		/**
		 * Socket数据返回事件
		 */		
		public static const SOCKET_DATA_RECEIVE:String = "socketDataReceive";
		
		/**
		 * Request数据返回事件
		 */		
		public static const REQUEST_DATA_RECEIVE:String = "requestDataReceive";
		
		/**
		 * Request数据返回错误事件
		 */		
		public static const REQUEST_DATA_ERROR:String = "requestDataError";
		
		/**
		 * 事件传递的数据 
		 */		
		private var _data:Object;
		
		/**
		 * 事件传递的数据
		 */		
		public function get date():Object
		{
			return _data;
		}
		
		public function DataEvent(type:String, data:Object=null)
		{
			super(type, data);
			_data=data;
		}
	}
}